package top.hhydra.mimall.form;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * @Description
 * @auther SaiyeEmon
 * @create 2020-02-24 22:21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ShippingForm {

    @NotBlank(message = "请输入收货人姓名")
    @ApiModelProperty(value = "收货姓名")
    private String receiverName;

    @NotBlank(message = "请输入收货固定电话")
    @ApiModelProperty(value = "收货固定电话")
    private String receiverPhone;

    @NotBlank(message = "请输入收货移动电话")
    @ApiModelProperty(value = "收货移动电话")
    private String receiverMobile;

    @NotBlank(message = "请输入省份")
    @ApiModelProperty(value = "省份")
    private String receiverProvince;

    @NotBlank(message = "请输入城市")
    @ApiModelProperty(value = "城市")
    private String receiverCity;

    @NotBlank(message = "请输入区/县")
    @ApiModelProperty(value = "区/县")
    private String receiverDistrict;

    @NotBlank(message = "请输入详细地址")
    @ApiModelProperty(value = "详细地址")
    private String receiverAddress;

    @NotBlank(message = "请输入邮编")
    @ApiModelProperty(value = "邮编")
    private String receiverZip;
}
